﻿using maranov.SymlinkManager.ApplicationPrivilege;
using maranov.SymlinkManager.FilesystemLinks.PrivilegeCheckProviders;
using System.Collections.Generic;
using System.Linq;

namespace maranov.SymlinkManager
{
    /// <summary>
    /// Privilege checks provider for the application.
    /// </summary>
    public class ApplicationPrivilegeCheckProvider : IPrivilegeCheckProvider
    {
        public IEnumerable<PrivilegeCheck> PrivilegeCheckRoutines
        {
            get
            {
                return
                    new SymbolicLinkPrivilegeCheckProvider().PrivilegeCheckRoutines.Concat(
                        new HardLinkPrivilegeCheckProvider().PrivilegeCheckRoutines);
            }
        }
    }
}
